#define _CRT_SECURE_NO_WARNINGS
#include <iostream>
#include <string>
#include <vector>
#include <map>
using namespace std;

int main()
{
    string s;
    getline(cin, s);
    for (auto& e : s)
    {
        if (e >= 'A' && e <= 'Z')
        {
            e += 32;
        }
    }
    vector<string> vs;
    map<string, int> CountMap;
    string tmp;
    for (int i = 0; i < s.size(); i++)
    {
        if (s[i] == ' ' || s[i] == '.')
        {
            vs.push_back(tmp);
            tmp.clear();
        }
        else
        {
            tmp += s[i];
        }
    }
    for (auto& ch : vs)
    {
        CountMap[ch]++;
    }
    for (auto& e : CountMap)
    {
        cout << e.first << ":" << e.second << endl;
    }
    return 0;
}